package com.atxiaodei.swagger.swaggerdemo.service.impl;

import com.atxiaodei.swagger.swaggerdemo.service.GoodService;
import com.atxiaodei.swagger.swaggerdemo.vo.Good;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * @author wangmeng
 * @date 2020/9/17
 **/
@Service
public class GoodServiceImpl implements GoodService {
    @Override
    public List<Good> queryGoodsAll() {

        List<Good> list = Arrays.asList(new Good(1,"面包",22),new Good(1,"机器人",3330));
        return list;
    }

    @Override
    public Good selectByPrimaryKey(Integer gid) {
        return new Good(1,"面包",22);
    }
}
